'''
Created on Aug 19, 2012

@author: petrina
'''

    
class Config_exception(Exception):
    """ this Exception is usually raised if invalid data is in the config-file"""

    def __init__(self, value = ""):
        self.value = value

    def __str__(self):
        return repr(self.value)  

class Import_exception(Exception):
    """ this Exception is usually raised if there is an error while importing data"""

    def __init__(self, value = ""):
        self.value = value

    def __str__(self):
        return repr(self.value)  

class Indicator_exception(Exception):
    """ this Exception is usually raised if there is an error with calculating an indicator"""

    def __init__(self, value = ""):
        self.value = value

    def __str__(self):
        return repr(self.value)  

class DB_connection_exception(Import_exception):
    """ this Exception is usually raised if there is an error while connection to the database"""

    def __init__(self, value = ""):
        self.value = value 